﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NRemedy
{
    public class DuplicateDatabaseIDException : Exception
    {
        public uint ID { get; set; }

        public string ExternalMessage{get;set;}

        public DuplicateDatabaseIDException()
        {
        }

        public DuplicateDatabaseIDException(uint ID)
        {
            this.ID = ID;
        }

        public DuplicateDatabaseIDException(uint ID,string Message)
        {
            this.ID = ID;
            this.ExternalMessage = Message;
        }

        public override string Message
        {
            get
            {
                return string.Format("Object already contains the field of ID : {0}.{1}" , ID.ToString() , ExternalMessage);
            }
        }
    }
}
